#! /usr/bin/env python
#coding=utf-8
import logging
import logging.config
import time
import os
import socket

#logging.config.fileConfig("7.txt")
loger = logging.getLogger()
#sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 
#sock
port = 8000
socke = logging.handlers.SocketHandler('localhost', logging.handlers.DEFAULT_TCP_LOGGING_PORT)
formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
socke.setFormatter(formatter)
loger.addHandler(socke)
loger.error("helo")
